package com.buildings.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

public class DivisionResultBean extends BaseBean {

    private List<Division> data;

    public List<Division> getData() {
        return data;
    }

    public void setData(List<Division> data) {
        this.data = data;
    }

    public static class Division implements IPickerViewData {
        //{"divisionId":"0","divisionCode":null,"divisionName":"0a","parentId":null,"allParentId":null,"level":null,"divisionType":null,"region":null,"isValid":null,"createUser":null,"createTime":null,"updateUser":null,"updateTime":null}
        private String divisionId;
        private String divisionName;
        private String divisionType;

        public String getDivisionId() {
            return divisionId;
        }

        public void setDivisionId(String divisionId) {
            this.divisionId = divisionId;
        }

        public String getDivisionName() {
            return divisionName;
        }

        public void setDivisionName(String divisionName) {
            this.divisionName = divisionName;
        }

        @Override
        public String getPickerViewText() {
            return divisionName;
        }

        public String getDivisionType() {
            return divisionType;
        }

        public void setDivisionType(String divisionType) {
            this.divisionType = divisionType;
        }
    }
}
